/**
  * Copyright 2024 bejson.com 
  */
package com.ltu.model.request.coupon;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;


@ApiModel(description = "券发放规则")
public class Stock_send_rule {
	
	@ApiModelProperty(value = "批次最大可发放个数限制 特殊规则：取值范围 1 ≤ value ≤ 1000000" , required = true)
    private int max_coupons=1;
	@ApiModelProperty(value = "用户可领个数，每个用户最多100张券 " , required = true)
    private int max_coupons_per_user=1;
	@ApiModelProperty(value = "单天发放上限个数（stock_type为DISCOUNT或EXCHANGE时可传入此字段控制单天发放上限）。 特殊规则：取值范围 1 ≤ value ≤ 10000000" , required = true)
    private int max_coupons_by_day;
	@ApiModelProperty(value = "不填默认否，枚举值： true：是 false：否 如：黑灰产账号" , required = false,hidden = true)
    private boolean prevent_api_abuse=true;
  
	
    public Stock_send_rule() {
		super();
		// TODO Auto-generated constructor stub
	}
    
    public Stock_send_rule(int max_coupons, int max_coupons_per_user) {
    	super();
    	this.max_coupons = max_coupons;
    	this.max_coupons_per_user = max_coupons_per_user;
    	this.max_coupons_by_day = this.max_coupons;
    }
    
	public Stock_send_rule(int max_coupons, int max_coupons_per_user, int max_coupons_by_day) {
		super();
		this.max_coupons = max_coupons;
		this.max_coupons_per_user = max_coupons_per_user;
		this.max_coupons_by_day = max_coupons_by_day;
	}


	public void setMax_coupons(int max_coupons) {
         this.max_coupons = max_coupons;
     }
     public int getMax_coupons() {
         return max_coupons;
     }

    public void setMax_coupons_per_user(int max_coupons_per_user) {
         this.max_coupons_per_user = max_coupons_per_user;
     }
     public int getMax_coupons_per_user() {
         return max_coupons_per_user;
     }

    public void setMax_coupons_by_day(int max_coupons_by_day) {
         this.max_coupons_by_day = max_coupons_by_day;
     }
     public int getMax_coupons_by_day() {
         return max_coupons_by_day;
     }

   

    public void setPrevent_api_abuse(boolean prevent_api_abuse) {
         this.prevent_api_abuse = prevent_api_abuse;
     }
     public boolean getPrevent_api_abuse() {
         return prevent_api_abuse;
     }

   
}